/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const tableRouter = {
  path: '/table',
  component: Layout,
  redirect: '/table/complex-table',
  name: 'Table',
  meta: {
    title: '其它管理',
    icon: 'table'
  },
  children: [
    {
      path: 'dynamic-table',
      component: () => import('@/views/goalInterface/index'),
      name: 'DynamicTable',
      meta: { title: '评分项管理' }
    },
    {
      path: 'drag-table',
      component: () => import('@/views/questions/index'),
      name: 'DragTable',
      meta: { title: '试题管理' }
    },
    {
      path: 'inline-edit-table',
      component: () => import('@/views/table/inline-edit-table'),
      name: 'InlineEditTable',
      meta: { title: '题库管理' }
    },
    {
      path: 'inline-edit-table-detail',
      component: () => import('@/views/table/inline-edit-table-detail'),
      name: 'InlineEditTableDetail',
      meta: { title: '试题管理' },
      hidden: true
    },
    {
      path: 'complex-table',
      component: () => import('@/views/table/complex-table'),
      name: 'ComplexTable',
      meta: { title: '消息管理' }
    },
    {
      path: 'management',
      component: () => import('@/views/table/management/index'),
      name: 'management',
      meta: { title: '积分管理' },
      children: [
        {
          path: 'rule',
          component: () => import('@/views/table/management/rule'),
          name: 'rule',
          meta: { title: '积分规则' }
        },
        {
          path: 'history',
          component: () => import('@/views/table/management/history'),
          name: 'history',
          meta: { title: '积分历史' }
        },
        {
          path: 'product',
          component: () => import('@/views/table/management/product'),
          name: 'product',
          meta: { title: '积分商品页' }
        }
      ]
    },
    {
      path: 'menu5-6',
      component: () => import('@/views/teacherPicture/admin/index'),
      name: 'ComplexTable',
      meta: { title: '数据管理' }
      // children: [
      //   {
      //     path: 'menu5-6-1',
      //     component: () => import('@/views/table/complex-table'),
      //     name: 'ComplexTable',
      //     meta: { title: '学生数据统计' }
      //   },
      //   {
      //     path: 'menu5-6-2',
      //     component: () => import('@/views/table/complex-table'),
      //     name: 'ComplexTable',
      //     meta: { title: '课程数据统计' }
      //   },
      //   {
      //     path: 'menu5-6-3',
      //     component: () => import('@/views/table/complex-table'),
      //     name: 'ComplexTable',
      //     meta: { title: '销售统计' }
      //   }
      // ]
    }
  ]
}
export default tableRouter
